home *** CD-ROM | disk | FTP | other *** search
- /****i* SOURCE_FILE/INFO
- *
- * NAME
- * ObjectDumper.js
- *
- * USAGE
- * Part of Netobjects JavaScript Library.
- *
- * COPYRIGHT
- * Copyright ⌐ 2000-2005 Website Pros, Inc.
- * All Rights Reserved.
- *
- * This is an unpublished work protected by Website Pros, Inc.
- * as a trade secret, and is not to be used or disclosed except as
- * expressly provided in a written license agreement executed by
- * you and Website Pros, Inc.
- *
- * <copyright@websitepros.com>
- *
- * NOTES
- * JavaScript code.
- *
- *****/
-
- if (!IS.isModuleInitialized("IS.NOF.UTIL.ObjectDumper"))
- {
-
- /****h* NOF_JavaScript_Library/NOF.UTIL.ObjectDumper
- *
- * NAME
- * NOF.UTIL.ObjectDumper
- *
- * DESCRIPTION
- *
- *
- ****/
- function NOF_ObjectDumper(){
- this.__proto__ = NOF_ObjectDumper;
-
- this.dump = dump;
-
- function dump( obj, obj_name ){
- var result = ""
- for (var i in obj) {
- result += obj_name + "." + i + " = " + obj[i] + "\n"
- }
-
- result += "\n\n"
- return result;
- }
- }
-
- NOF.UTIL.__proto__.ObjectDumper = new NOF_ObjectDumper();
-
- //TODO: delete it from NOF NS
- NOF.__proto__.ObjectDumper = new NOF_ObjectDumper();
-
- }
-